<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="zh-cn">
<head>
    <meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0">

    <link rel="stylesheet" type="text/css" href="<?php echo $this->res("skin/nsf/css/style.css") ?>" media="all" />
    <link rel="stylesheet" type="text/css" href="<?php echo $this->res("skin/nsf/css/pure-min.css") ?>" media="all" />
    <link rel="stylesheet" type="text/css" href="<?php echo $this->res("skin/nsf/css/pure-mine-skin.css") ?>" media="all" />

    <!--[if lte IE 8]>
        <link rel="stylesheet" href="<?php echo $this->res("skin/nsf/css/main-grid-old-ie.css") ?>">
    <![endif]-->
    <!--[if gt IE 8]><!-->
        <link rel="stylesheet" href="<?php echo $this->res("skin/nsf/css/main-grid.css") ?>">
    <!--<![endif]-->

    <!--[if lte IE 8]>
        <link rel="stylesheet" href="<?php echo $this->res("skin/nsf/css/layouts/blog-old-ie.css") ?>">
    <![endif]-->
    <!--[if gt IE 8]><!-->
        <link rel="stylesheet" href="<?php echo $this->res("skin/nsf/css/layouts/blog.css") ?>">
    <!--<![endif]-->

    <link rel="stylesheet" type="text/css" href="<?php echo $this->res("skin/nsf/css/prettify.css") ?>" media="all" />
    <script type="text/javascript" src="<?php echo $this->res("js/jquery-1.7.1.min.js") ?>"></script>
    <script src="<?php echo $this->res("js/prettify.js") ?>" charset="utf-8"></script>
    <title><?php echo isset($title) ? $title : 'Ideaa' ?></title>
</head>

<body>

    <div id="layout" class="pure-g">
        <div class="sidebar pure-u-1 pure-u-med-1-4">
            <div class="header">
                <hgroup>
                    <h1 class="brand-title">Ideaa</h1>
                    <h2 class="brand-tagline">记录点滴...</h2>
                </hgroup>

                <nav class="nav">
                    <ul class="nav-list">
                        <li class="nav-item">
                            <a class="pure-button" href="<?php echo $this->link() ?>">首页</a>
                        </li>
                        <li class="nav-item">
                            <a class="pure-button" href="<?php echo $this->link("article") ?>">日志</a>
                        </li>
                    </ul>
                </nav>

                <h5 style="padding-top: 10px;" class="brand-tagline"><?php echo $this->setSkin() ?></h5>
            </div>
        </div>
        <div class="content pure-u-1 pure-u-med-3-4">
            <?php echo ! empty($content) ? $content : '暂无内容' ?>
        </div>
    </div>
</body>
</html>
